import { FormRules } from 'element-plus'

const FormValidateRulesCmd: FormRules = {
  name: [{ required: true, message: '请输入命令配置名称', trigger: 'blur' }],
  priority: [{ required: true, message: '请输入当前命令配置的优先级', trigger: 'blur' }],
  cmd: [{ required: true, message: '请输入终端命令', trigger: 'blur' }]
}

export const FormValidateRules = {
  [CmdConfTypeConst.DIR]: FormValidateRulesDir,
  [CmdConfTypeConst.CMD]: FormValidateRulesCmd
}
